export const state = () => {
    return {
        list: [],
        postList: []
        //这里的list是用来存储历史记录的
    }
}
export const mutations = {
    addHistory(state, data) {
        state.list.push(data);
    },
    addPostlist(state, data) {
        state.postList.push(data);
    }
}